package com.alan.product.issue.content;

public class SwitchTest {

    public static void main(String[] args) {
        Integer x = null;
        System.out.println(test(x));
    }

    private static String test(Integer a) {
        if (a != null) {
            switch (a) {
                case 1:
                    return "1";
                case 2:
                    return "2";
                default:
                    return "3";
            }
        }
        return "";
    }
}
